package com.lanyou.cook.camel.commons;

public class Constants {

	public static final String FTP_INTERFACE_CODE = "test";//ftp接口编码
	public static final String HOST_TYPE = "hostType";//主机类型（1：源主机；2：目标主机）
	
	public static final String SOURECE_FIRST = "source_first";//源主机1
	
	public static final String SOURECE_SECOND = "source_second";//源主机2
	
	public static final String TARGET_FIRST = "target_first";//目标主机1
	
	public static final String TARGET_SECOND = "target_second";//目标主机2
	
	public static final String HOST = "host";//IP地址
	
	public static final String PORT = "port";//端口
	
	public static final String USERNAME = "username";//用户名
	
	public static final String PASSWORD = "password";//密码
	
	public static final String MSG_INTERFACE_NOTFOUND = "接口不存在，请先注册后再使用！";
	public static final String CODE_INTERFACE_NOTFOUND = "1001";
	
	public static final String MSG_INTERFACE_UNINSTALL = "接口已被卸载！";
	public static final String CODE_INTERFACE_UNINSTALL = "1002";
	
	public static final String MSG_INTERFACE_STOP = "接口已被停用！";
	public static final String CODE_INTERFACE_STOP = "1003";
	
	public static final String MSG_INTERFACE_UNAUDITED = "接口未审核，请联系平台管理员！";
	public static final String CODE_INTERFACE_UNAUDITED = "1004";
	
	public static final String MSG_INTERFACE_SUCCESS = "文件传输成功！";
	
	public static final String MSG_INTERFACE_FAIL = "文件传输失败！请确认目标FTP的目录存在，且同名文件是否可以修改";
	
	/**
	 * 选举命名空间
	 */
	public static final String ZOOKEPPER_NAMESPACE = "Cook2ftp";
	/**
	 * 竞争执行权限的节点（注意要与其他系统区别）
	 */
	public static final String ZOOKEPPER_PATH_JOB_SCHEDULER_LEADER = "/ftpSchedulerLeader";
	
	public static final String ZOOKEEPER_SERVER_URL = "zookeeper_server_url";
	
	/**
	 * FTP模式配置（passiveMode=true为被动模式，passiveMode=false为主动模式）
	 */
	public static final String FTP_MODE_TYPE = "passiveMode";
	
}
